package com.mall.b2c.plugin.order;

import javax.annotation.Resource;

import com.mall.b2c.service.MemberService;
import com.mall.common.plugin.AutoRegisterPlugin;

public abstract class AbstractOrderPayPlugin extends AutoRegisterPlugin {
	/** 支付前金额校验错误信息 **/
	protected static final String VALID_ERROR_NOT_EXIST = "notExist";
	protected static final String VALID_ERROR_OUT_BOUND = "countOutBound";
	protected static final String VALID_ERROR_NO_ENOUGH_COUNT = "noEnoughCount";
	protected static final String VALID_ERROR_AMOUNT = "errorAmount";
	protected static final String VALID_ERROR_TYPE = "errorType";
	protected static final String VALID_ERROR_COUNT_LESS = "countLess";
	protected static final String VALID_ERROR_LOSS_UNUSED = "lossunused";
	
	protected String type;
	@Resource protected MemberService memberService;
	
	/**
	 * 返回支付前验证错误信息
	 * @return
	 */
	public String getPayError() {
		return null;
	}
	
}
